The XOR Logic Gate (Exclusive OR) has two inputs and one output. If ONE—and only one—input is 1 or YES (any number except 0 acts like a YES), then the output will be 1 or YES. Otherwise the output will be NO.